﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LY.Interface;

namespace QJ.CMS.Controllers
{
    public class HelpcenterController : Controller
    {
        //
        // GET: /Helpcenter/

           private IArticleService _articleService;
           public HelpcenterController(IArticleService articleService)
        {
            _articleService = articleService;
        }
        public ActionResult agreement()
        {
            try
            {
                var model = _articleService.GetArticle(148);

                ViewData.Model = model;
            }
            catch (Exception ex)
            {
                TempData.Add("msg", ex.Message);
                return RedirectToAction("Error", "Default");
            }
            return View();
        }

        public ActionResult Feedback()
        {
            return View();
        }

    }
}
